package com.example.tilitili.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.tilitili.pojo.Goods;
import com.example.tilitili.vo.GoodsVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liu
 * @since 2022-01-17
 */
public interface GoodsMapper extends BaseMapper<Goods> {
    /**
     * 返回商品列表
     * @return
     */
    List<GoodsVo> findGoodsVo();

    /**
     * 获取商品详情
     * @return
     */
    GoodsVo  findGoodsVoByGoodsId(Long GoodsId);

    /**
     * 获取上架商品详情
     * @return
     */
    GoodsVo  findGoodsVoByGoodsId2(Long GoodsId);
}
